Skip to content

Chore: mv translateFunctionTypeAnnotation fn > parsers-commons.js#35343

Closed
Pranav-yadav wants to merge 1 commit into
facebook:mainfrom
Pranav-yadav:ch/mv-translateFunctionTypeAnnotation
Closed

Chore: mv translateFunctionTypeAnnotation fn > parsers-commons.js#35343
Pranav-yadav wants to merge 1 commit into
facebook:mainfrom
Pranav-yadav:ch/mv-translateFunctionTypeAnnotation

Conversation

@Pranav-yadav
Copy link
Copy Markdown
Contributor

@Pranav-yadav Pranav-yadav commented Nov 14, 2022

Summary

This PR should solve the "Circular Dependencies" problem/issue because of which some PRs are getting blocked as discussed here #35288 (comment)

  • also moved below helpers to parsers-commons.js;
  • getTypeAnnotationParameters
  • getFunctionNameFromParameter
  • getParameterName
  • getParameterTypeAnnotation
  • getTypeAnnotationReturnType

<3

Changelog

[INTERNAL] [CHANGED] - Moved translateFunctionTypeAnnotation fn from parsers-primitives.js to parsers-commons.js also, moved it's helpers

Test Plan

  • ensure 👇 is #00ff00

yarn lint && yarn flow && yarn test-ci

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 14, 2022
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@rshest has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@analysis-bot
Copy link
Copy Markdown

analysis-bot commented Nov 14, 2022

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,099,276 +0
android hermes armeabi-v7a 6,468,933 +0
android hermes x86 7,517,132 +0
android hermes x86_64 7,375,791 +0
android jsc arm64-v8a 8,963,923 +0
android jsc armeabi-v7a 7,695,310 +0
android jsc x86 9,026,415 +0
android jsc x86_64 9,504,554 +0

Base commit: 2eccd59
Branch: main

@analysis-bot
Copy link
Copy Markdown

analysis-bot commented Nov 14, 2022

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: 2eccd59
Branch: main

@pull-bot
Copy link
Copy Markdown

PR build artifact for f906d91f265f1bc8259e68eaebe89240b0b5a22f is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@pull-bot
Copy link
Copy Markdown

PR build artifact for f906d91f265f1bc8259e68eaebe89240b0b5a22f is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@cipolleschi
Copy link
Copy Markdown
Contributor

/rebase

- also moved below helpers > `parsers-commons.js`;
- `getTypeAnnotationParameters`
- `getFunctionNameFromParameter`
- `getParameterName`
- `getParameterTypeAnnotation`
- `getTypeAnnotationReturnType`

<3
@github-actions github-actions Bot force-pushed the ch/mv-translateFunctionTypeAnnotation branch from f906d91 to c8af053 Compare November 15, 2022 10:04
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@rshest has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@pull-bot
Copy link
Copy Markdown

PR build artifact for c8af053 is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@pull-bot
Copy link
Copy Markdown

PR build artifact for c8af053 is ready.
To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

@Pranav-yadav Pranav-yadav deleted the ch/mv-translateFunctionTypeAnnotation branch November 15, 2022 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants